package com.xcj.cloud.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xcj.cloud.entity.Admin;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;


@Repository
public interface AdminMapper extends BaseMapper<Admin>{

    //  根据管理员身份和密码进行认证，如果认证通过，返回管理员信息
    @Select("select * from t_admin where admin_name = #{adminName} and is_del = 0")
    Admin findAdmin(Admin admin);
}
